Magento 2 Useful Commands Shortcut
List of useful commands for Magento 2 shortcuts
To know the Magento version running
php bin/magento --version
Setup Upgrade Using Command Line
php bin/magento setup:upgrade
If you don’t want to remove pub/static files while installing/updating the database then use the following command.
php bin/magento setup:upgrade --keep-generated
Cache Clean Using Command Line
php bin/magento cache:clean
Cache Flush Using Command Line
php bin/magento cache:flush
View cache status Using following command Line
php bin/magento cache:status
Enable Cache Using Command Line
php bin/magento cache:enable
Disable Cache Using Command Line
php bin/magento cache:disable [cache_type]
Static Content Deploy Using Command Line
php bin/magento setup:static-content:deploy
(Use -f for force deploy on 2.2.x or later)
php bin/magento setup:static-content:deploy -f
Static Content Deploy For Particular Language Using Command Line
php bin/magento setup:static-content:deploy en_US
Static Content Deploy For Magento Backend Theme Using Command Line (Working on 2.1.1 or later)
php bin/magento setup:static-content:deploy --theme="Magento/backend"
Static Content Deploy For Specific Themes Using Command Line (Working on 2.1.1 or later)
php bin/magento setup:static-content:deploy --theme Magento/luma --theme Magento/second_theme
Enable module Using Command Line
php bin/magento module:enable Namespace_Module
Disable module Using Command Line
php bin/magento module:disable Namespace_Module
Uninstall Module Using Command Line
php bin/magento module:uninstall Namespace_Module
Reindexing Using Command Line
php bin/magento indexer:reindex
View the list of indexers Using Command Line
php bin/magento indexer:info
View indexer status Using Command Line
php bin/magento indexer:status
Show the mode of all indexers Using Command Line
php bin/magento module:status
Check Current Mode Using Command Line
php bin/magento deploy:mode:show
Change To Developer Mode Using Command Line
php bin/magento deploy:mode:set developer
Change To Production Mode Using Command Line
php bin/magento deploy:mode:set production
Run the single-tenant Compiler Using Command Line
php bin/magento setup:di:compile
Unlock Admin User Using Command Line
php bin/magento admin:user:unlock adminusername
Enable Maintenance Mode Using Command Line
php bin/magento maintenance:enable
To enable maintenance mode for all clients except 192.0.0.1 and 192.0.0.2
php bin/magento maintenance:enable --ip=192.0.0.1 --ip=192.0.0.2
To clear the list of IPs.
php bin/magento maintenance:enable --ip=none
Disable Maintenance Mode Using Command Line
php bin/magento maintenance:disable
Check Maintenance Mode Status Using Command Line
php bin/magento maintenance:status
How to Allow IP on Maintenance Mode Using Command Line
php bin/magento maintenance:allow-ips --ip=192.0.0.1 --ip=192.0.0.2
Set Magento crontab Using Command Line
php bin/magento cron:install --force (Use --force to rewrite an existing Magento crontab.)
To view the crontab, enter the following command as the Magento file system owner.
crontab -l
Remove Magento crontab Using Command Line
php bin/magento cron:remove
Enable Merge CSS
php bin/magento config:set dev/css/merge_css_files 1
Disable Merge CSS
php bin/magento config:set dev/css/merge_css_files 0
Enable Merge JS
php bin/magento config:set dev/js/merge_files 1
Disable Merge JS
php bin/magento config:set dev/js/merge_files 0
Enable Frontend template hints
php bin/magento dev:template-hints:enable
Disable Frontend template hints
php bin/magento dev:template-hints:disable
Check to determine whether or not you need to upgrade the database (using setup:upgrade)
php bin/magento setup:db:status
Enable database query log
php bin/magento dev:query-log:enable
Win79 always appears in the list of the most attractive entertainment game portals in Vietnam. Joining this playground, you can freely explore many interesting bets. In addition, you can also receive many other memorable experiences. Readmore: win79
THABET is the leading reputable bookmaker brand in Asia that any online betting enthusiast in the market knows. THA Casino is a trusted and familiar "home" address of the betting community in countries in the region, including Vietnam. - please click here Readmore: thabet
Helo88 (also known as Hello 88) is a bookmaker that is making waves in the online gaming community and those who love online betting. helo88 is not simply a bookmaker, but also a miniature entertainment world. With a series of interesting and exciting betting entertainment games. Readmore: helo88
bj88 is known as one of the newest and most reputable bookmakers in 2024 in Asia. Website bj88 will share all necessary information for those who need it. This is bj88's latest homepage - please click here Readmore: đăng ký bj88
Coming to 24N means you are entering the world of professionalism and class that a leading European bookmaker brings. Enjoy the world of quality, reputable online betting that few markets can provide. - please click here Readmore: 24n
The i9bet website will answer the questions asked in the above article. There are articles in this that make better sense. Please click this link for more details Readmore: rút tiền i9bet
Positive site, where did u come up with the information on this posting?I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work. sexy costumes for women
Sv388 is a famous brand for providing online cockfighting matches. Here, players will enjoy super classic cockfighting matches of famous cock fighters famous around the world. - please click here Readmore: đá gà trực tiếp
Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with extra information? It is extremely helpful for me.토토솔루션제작
Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with extra information? It is extremely helpful for me.플레이포커머니상
Cool stuff you have got and you keep update all of us.강남관전클럽
Rainbet's VIP program offers exclusive bonuses and premium perks! Explore top online casinos, enjoy free spins, and elevate your gaming adventure. Online casino withdrawal times
Get the best of both worlds: better odds and security at TotoBit-recommended sports betting sites.토토사이트
Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with extra information? It is extremely helpful for me. 호빠
Thank you very much for this useful article. I like it.situs judi slot
Please rotate your device
We don't support landscape mode on your device. Please rotate to portrait mode for the best view of our site